#ifndef INCLUDE_GUARD_GOTO_CHECKER_HPP
#define INCLUDE_GUARD_GOOT_CHECKER_HPP

#include <clang/ASTMatchers/ASTMatchFinder.h>

#include <stack>
#include <map>
#include <string>

class GotoChecker : public clang::ast_matchers::MatchFinder::MatchCallback
{
public:
virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result);
private:
	bool in_error_section;
	std::stack<clang::LabelDecl*> gotos;
	std::map<const std::string, const clang::GotoStmt*> seen_jumps;
};

#endif
